package com.soup.lab.validation;

import com.soup.lab.validation.model.DateModel;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.validation.Valid;

@RestController
@RequestMapping("/date")
public class DatePairController {

    @GetMapping("simple")
    public Object simple(@Valid DateModel dateModel) {
        return dateModel;
    }

}
